﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;
using Volo.Abp.Application;
using Mozhi.Abp.Module.DataLinkage;

namespace mozhi.smarterp.BasicData;

[DependsOn(
    typeof(BasicDataDomainModule),
    typeof(BasicDataApplicationContractsModule),
    typeof(AbpDddApplicationModule),
    typeof(AbpAutoMapperModule),
    typeof(DataLinkageApplicationModule)
    )]
public class BasicDataApplicationModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<BasicDataApplicationModule>();
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<BasicDataApplicationModule>(validate: true);
        });

        
    }
}
